*Impact standards replication script
	
*Latent class analysis
	gsem (generalizable internal_validity disclose_meth_lim toc_logframes_etc attempt_attribution mixed_methods counterfactual_method <- _cons), family(bernoulli) link(probit) lclass(one_lc  1)
		estimates store oneclass
		estat lcgof
	gsem (generalizable internal_validity disclose_meth_lim toc_logframes_etc attempt_attribution mixed_methods counterfactual_method <- _cons), family(bernoulli) link(probit) lclass(two_lcs 2)
		estimates store twoclass
		estat lcgof
	gsem (generalizable internal_validity disclose_meth_lim toc_logframes_etc attempt_attribution mixed_methods counterfactual_method <- _cons), family(bernoulli) link(probit) lclass(three_lcs 3)
		estimates store threeclass
		estat lcgof
		
*LC goodness of fit
	estimates stats oneclass twoclass threeclass

*LC post-estimation
	gsem (generalizable internal_validity disclose_meth_lim toc_logframes_etc attempt_attribution mixed_methods counterfactual_method <- _cons), family(bernoulli) link(probit) lclass(two_lcs 2)

	*LC predicted proportions (sizes)
		estat lcprob
		
	*LC profiles
		estat lcmean

	*Modal assignment
		predict claspost*, classposteriorpr
		generate latentclass = 1 + (claspost2>0.5)
		tab latentclass
		
*Label variable

	label var latentclass "Latent class"
	
*Tests that indicator coefficients are jointly equal to zero
	gsem, coeflegend
		test  (_b[generalizable:1.two_lcs]==0) (_b[generalizable:2.two_lcs]==0) 	
		test  (_b[internal_validity:1.two_lcs]==0)(_b[internal_validity:2.two_lcs]==0)
		test  (_b[disclose_meth_lim:1.two_lcs]==0) (_b[disclose_meth_lim:2.two_lcs]==0)
		test  (_b[toc_logframes_etc:1.two_lcs]==0) (_b[toc_logframes_etc:2.two_lcs]==0)
		test  (_b[attempt_attribution:1.two_lcs]==0) (_b[attempt_attribution:2.two_lcs]==0)
		test  (_b[mixed_methods:1.two_lcs]==0) (_b[mixed_methods:2.two_lcs]==0)
		test  (_b[counterfactual_method:1.two_lcs]==0) (_b[counterfactual_method:2.two_lcs]==0)
		
*Identify sponsors in each cluster
	sort latentclass name
	bysort latentclass: list name
	
*Crosstabs
	tab org_type latentclass, col chi2
	tab national latentclass, col chi2
	tab governmental latentclass, col chi2
	tab std_type latentclass, col chi2
	
	bysort latentclass: tabstat appropriate_measure - internal_validity, varwidth(32) columns(statistics)

	codebook, compact

	tab appropriat~e latentclass, column chi2 nokey
	tab attempt_at~n latentclass, column chi2 nokey
	tab generaliza~e latentclass, column chi2 nokey
	tab benchmarking latentclass, column chi2 nokey
	tab collaborate latentclass, column chi2 nokey
	tab common_ext~l latentclass, column chi2 nokey
	tab common_int~l latentclass, column chi2 nokey
	tab costs latentclass, column chi2 nokey
	tab counterfac~d latentclass, column chi2 nokey
	tab data_systems latentclass, column chi2 nokey
	tab definition~t latentclass, column chi2 nokey
	tab design_ele~s latentclass, column chi2 nokey
	tab design_its~f latentclass, column chi2 nokey
	tab disclose_m~m latentclass, column chi2 nokey
	tab effectiven~s latentclass, column chi2 nokey
	tab efficiency latentclass, column chi2 nokey
	tab ethics latentclass, column chi2 nokey
	tab eval_at_ou~t latentclass, column chi2 nokey
	tab evidence_l~n latentclass, column chi2 nokey
	tab evidence_use latentclass, column chi2 nokey
	tab validation latentclass, column chi2 nokey
	tab formative latentclass, column chi2 nokey
	tab independence latentclass, column chi2 nokey
	tab info_secur~y latentclass, column chi2 nokey
	tab info_sharing latentclass, column chi2 nokey
	tab innovation latentclass, column chi2 nokey
	tab listening latentclass, column chi2 nokey
	tab long_term_~s latentclass, column chi2 nokey
	tab meal_process latentclass, column chi2 nokey
	tab mention_at~n latentclass, column chi2 nokey
	tab mission_se~d latentclass, column chi2 nokey
	tab mixed_meth~s latentclass, column chi2 nokey
	tab monitoring latentclass, column chi2 nokey
	tab org_culture latentclass, column chi2 nokey
	tab outputs_ou~s latentclass, column chi2 nokey
	tab ownership latentclass, column chi2 nokey
	tab participat~n latentclass, column chi2 nokey
	tab periodicity latentclass, column chi2 nokey
	tab personnel_~s latentclass, column chi2 nokey
	tab purpose latentclass, column chi2 nokey
	tab reporting_~n latentclass, column chi2 nokey
	tab reporting_~r latentclass, column chi2 nokey
	tab reporting_up latentclass, column chi2 nokey
	tab staff_impr~e latentclass, column chi2 nokey
	tab system_cha~e latentclass, column chi2 nokey
	tab toc_logfra~c latentclass, column chi2 nokey
	tab triangulat~n latentclass, column chi2 nokey
	tab unintend_s~y latentclass, column chi2 nokey
	tab internal_v~y latentclass, column chi2 nokey


	
	